//
//  ZBAudioRecorder.h
//  ZBUtility
//
//  Created by xzb on 2018/2/28.
//

#import <Foundation/Foundation.h>

@interface ZBAudioRecorder : NSObject

+ (ZBAudioRecorder *)sharedRecorder;

- (void)startRecordingWithVolumeChangedBlock:(void (^)(CGFloat volume))volumeChanged
                               completeBlock:(void (^)(NSString *path, CGFloat time))complete
                                 cancelBlock:(void (^)(void))cancel;
- (void)stopRecording;
- (void)cancelRecording;

@end

